import gtk

class About:
    
    def __init__(self, window):
        self.window = window
        self.window.connect("response", self.close)
        self.window.connect("delete_event", self.on_delete_event)

    
    def on_delete_event(self, widget, event):
        self.window.response(gtk.RESPONSE_CANCEL)
        return True
    

    def close(self, widget, responseid):
        if responseid == gtk.RESPONSE_CANCEL:
            widget.hide()


